Open and Closed Worlds for Overloading: a Definition and Support for Coexistence
نویسندگان
چکیده
The type system of Haskell and some related systems are based on an open world approach for overloading. In an open world, the principal type of each overloaded symbol must be explicitly annotated (in Haskell, annotations occur in type class declarations) and a definition of an overloaded symbol is required to exist only when overloading is resolved. In a closed world, on the other hand, each principal type is determined according to the types of definitions that exist in the relevant context and, furthermore, overloading resolution for an expression considers only the context of the definition of its constituent symbols. In this paper we formally characterize open and closed worlds, and discuss their relative advantages. We present a type system that supports both approaches together, and compare the defined system with Haskell type classes extended with multi-parameter type classes and functional dependencies. We show in particular that functional dependencies are not necessary in order to support multi-parameter type classes, and present an alternative route.
منابع مشابه
Effect of Soft Knee Support on Dynamic and Static Balance in the Male Elderly
Objectives: Joint supporters can caused increasing proprioceptive information. Such proprioceptive information is needed for balance. The purpose of this study was to determine the effect of soft knee support on static and dynamic balance tests in male elderly (65 years and older). Methods & Materials: Via a randomized clinical trial study design, 22 elderly were selected and divided into tw...
متن کاملOn the pointfree counterpart of the local definition of classical continuous maps
The familiar classical result that a continuous map from a space $X$ to a space $Y$ can be defined by giving continuous maps $varphi_U: U to Y$ on each member $U$ of an open cover ${mathfrak C}$ of $X$ such that $varphi_Umid U cap V = varphi_V mid U cap V$ for all $U,V in {mathfrak C}$ was recently shown to have an exact analogue in pointfree topology, and the same was done for the familiar cla...
متن کاملComparison of the Effects of Open and Closed Endotracheal Suction on Cardiovascular and Ventilation Parameters for Patients Undergoing Mechanical Ventilation
Background and Objectives: Suction is a necessary and common method which aids in the release of secretion from the respiratory system for the patients who have undergone mechanical ventilation. One of the most common complications of suction is hypoxemia which causes dysrhythmia and death. The purpose of this study was to determine the effects of open and closed-endotracheal suction on cardiov...
متن کاملDefinition of General Operator Space and The s-gap Metric for Measuring Robust Stability of Control Systems with Nonlinear Dynamics
In the recent decades, metrics have been introduced as mathematical tools to determine the robust stability of the closed loop control systems. However, the metrics drawback is their limited applications in the closed loop control systems with nonlinear dynamics. As a solution in the literature, applying the metric theories to the linearized models is suggested. In this paper, we show that usin...
متن کاملClosed- and Open-loop Deep Brain Stimulation: Methods, Challenges, Current and Future Aspects
Deep brain stimulation (DBS) is known as the most effective technique in the treatment of neurodegenerative diseases, especially Parkinson disease (PD) and epilepsy. Relative healing and effective control of disease symptoms are the most significant reasons for the tangible tendency in use and development of this technology. Nevertheless, more cellular and molecular investigations are required ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- J. UCS
دوره 13 شماره
صفحات -
تاریخ انتشار 2007